import React from "react";

import { useParams } from 'react-router-dom';
 
const Product2 = () => {
  const {id} = useParams();


  return (
    <div>
      <h2>产品页面</h2>
      <p>当前产品 ID: {id}</p>
    </div>
  );
}
 
export default Product2;